API Documentation
Font.h
1 // FontManager.h
3 //
5 
6 namespace nkWinUi
7 {
13  class Font
14  {
15  public :
16 
17  // Constructor, destructor
21  Font () ;
27  virtual ~Font () ;
28 
29  // Getters
33  const nkMemory::String& getName () const ;
37  const nkMemory::String& getFaceName () const ;
41  unsigned int getSize () const ;
45  bool getDefault () const ;
49  bool getReadyForUse () const ;
50 
51  // Setters
75  void setSize (unsigned int value) ;
83  void setDefault (bool value) ;
84 
85  // Loading
89  virtual void load () = 0 ;
93  virtual void unload () = 0 ;
97  void reload () ;
98  } ;
99 }
nkWinUi::Font::reload
void reload()
nkWinUi::Font::getReadyForUse
bool getReadyForUse() const
nkWinUi::Font::getFaceName
const nkMemory::String & getFaceName() const
nkWinUi::Font::getDefault
bool getDefault() const
nkWinUi::Font::setFaceName
void setFaceName(nkMemory::StringView value)
nkWinUi::Font
Offers an interface to work with fonts.
Definition: Font.h:14
nkWinUi::Font::setSize
void setSize(unsigned int value)
nkWinUi::Font::getName
const nkMemory::String & getName() const
nkWinUi::Font::setName
void setName(nkMemory::StringView value)
nkMemory::String
Class holding information about a string, with ownership over the data.
Definition: String.h:22
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkWinUi::Font::~Font
virtual ~Font()
nkWinUi::Font::Font
Font()
nkWinUi::Font::load
virtual void load()=0
nkWinUi::Font::unload
virtual void unload()=0
nkWinUi::Font::setDefault
void setDefault(bool value)
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7
nkWinUi::Font::getSize
unsigned int getSize() const